<div class="popup_body">
    <div class="ui_table">
        <form method="post">
            <table cellpadding="0" cellspacing="0">
                <tr>
                    <td width="80" align="right">商品名称：</td>
                    <td><input type="text" name="itemName" class="text easyui-validatebox" required="true" value="${(entity.itemName)!''}"/></td>
                    <td width="80" align="right">分类：</td>
                    <td>
                        <input name="categoryId" id="category_id_${pid}" class="easyui-combotree" readonly  required="true"  style="width: 184px; height: 28px;"
                               data-options="
                                       url:'${contextPath}/security/hdw/item_category/tree.htm?agentId=${Session['SESSION_KEY_USER'].agentId}',
                                       onLoadSuccess:function() {
                                                   $('#category_id_${pid}').combotree('setValue', '${(entity.categoryId)!''}');
                                               }
                                       ">
                    </td>
                </tr>
                <tr>
                    <td align="right">状态：</td>
                    <td>
                            <span class="radio_box">
                                <input type="radio" class="radio" name="status" id="status_1" <#if entity.status?? && entity.status == 1>checked</#if> value="1"/><label for="status_1">下架</label>
                            </span>
                            <span class="radio_box">
                                <input type="radio" class="radio" name="status" id="status_2" <#if entity.status?? && entity.status == 2>checked</#if> value="2"/><label for="status_2">上架</label>
                            </span>
                    </td>
                    <td align="right">售出价(元)：</td>
                    <td><input class="text easyui-numberspinner" name="price" id="price_${pid}" required="true" data-options="min:0.01,precision:2" value="${(entity.price)!''}" style="width: 184px; height: 28px;"/></td>
                </tr>
                <tr>
                    <td align="right">换电金额(元)：</td>
                    <td><input class="text easyui-numberspinner" name="exchangeMoney" id="price_${pid}" required="true" data-options="min:0.00,precision:2" style="width: 184px; height: 28px;" value="${(entity.exchangeMoney)!''}"/></td>
                    <td align="right">显示价格(元)：</td>
                    <td><input class="text easyui-numberspinner" name="showPrice" id="price_${pid}" required="true" data-options="min:0.01,precision:2" style="width: 184px; height: 28px;" value="${(entity.showPrice)!''}"/></td>
                </tr>
                <tr>
                    <td align="right">备注：</td>
                    <td colspan="3"><textarea style="width:435px; height:50px;" name="introduction">${(entity.introduction)!''}</textarea></td>
                </tr>
                <tr>
                    <td width="70" align="right" valign="top"  style="padding-top:10px;">图片1：</td>
                    <td >
                        <div class="portrait" num="1">
                            <a href="javascript:void(0)"><img id="image1_${pid}" src="<#if (entity.imagePath1)?? && entity.imagePath1?length gt 0>${controller.appConfig.staticUrl}/${(entity.imagePath1)!''}<#else>${app.imagePath}/default_item.png</#if>" /><span>上传图片</span></a>
                        </div>
                    </td>
                    <td width="70" align="right" valign="top"  style="padding-top:10px;">图片2：</td>
                    <td>
                        <div class="portrait" num="2">
                            <a href="javascript:void(0)"><img id="image2_${pid}" src="<#if (entity.imagePath2)?? && entity.imagePath2?length gt 0>${controller.appConfig.staticUrl}/${(entity.imagePath2)!''}<#else>${app.imagePath}/default_item.png</#if>" /><span>上传图片</span></a>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td width="70" align="right" valign="top" style="padding-top:10px;">图片3：</td>
                    <td>
                        <div class="portrait" num="3">
                            <a href="javascript:void(0)"><img id="image3_${pid}" src="<#if (entity.imagePath3)?? && entity.imagePath3?length gt 0>${controller.appConfig.staticUrl}/${(entity.imagePath3)!''}<#else>${app.imagePath}/default_item.png</#if>" /><span>上传图片</span></a>
                        </div>
                    </td>
                    <td width="70" align="right" valign="top" style="padding-top:10px;">图片4：</td>
                    <td>
                        <div class="portrait" num="4">
                            <a href="javascript:void(0)"><img id="image4_${pid}" src="<#if (entity.imagePath4)?? && entity.imagePath4?length gt 0>${controller.appConfig.staticUrl}/${(entity.imagePath4)!''}<#else>${app.imagePath}/default_item.png</#if>" /><span>上传图片</span></a>
                        </div>
                    </td>
                </tr>

            </table>
        </form>
    </div>
</div>
<div class="popup_btn">
    <button class="btn btn_border close">关闭</button>
</div>
<script>
    (function() {
        var pid = '${pid}',
                win = $('#' + pid),
                form = win.find('form');


        win.find('button.close').click(function() {
            win.window('close');
        });

    })()
</script>